package cn.wit.test;

public class DemoDice {
	public static void main(String[] args) {

		int dece1 = 0;
		int dece2 = 0;
		int count = 0;

		// 循环终止条件
		while (!(dece1 == 6 && dece2 == 6)) {
			dece1 = (int) (Math.random() * 6 + 1);
			dece2 = (int) (Math.random() * 6 + 1);
			count++;

		}
		System.out.println(dece1 + " " + dece2 + " " + count);
	}

}
